package PO;

import java.io.Serializable;
import java.util.ArrayList;

import Promotion.ExCouponsForUser;

@SuppressWarnings("serial")
public class ExCouponsForUserPO extends PO implements Serializable{
	private ArrayList<ExchangecouponsPO>  ExcouponsForUserlist=new ArrayList<>();
	private ArrayList<Integer> numList=new ArrayList<>();
	
	public ExCouponsForUserPO(ExCouponsForUser ex){
		numList=ex.getNumList();
		ExcouponsForUserlist=new ArrayList<ExchangecouponsPO>();
		for(int i=0;i<ex.getExcouponsForUserlist().size();i++)
			ExcouponsForUserlist.add(new ExchangecouponsPO(ex.getExcouponsForUserlist().get(i)));
	}
	
	public ExCouponsForUserPO() {}

	//getter,setter
	public ArrayList<ExchangecouponsPO> getExcouponsForUserlist() {
		return ExcouponsForUserlist;
	}
	public ArrayList<Integer> getNumList() {
		return numList;
	}
    

}
